package com.loan.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName avaloan
 */
@TableName(value ="avaloan")
@Data
@ApiModel("测试可用额度实体类")
public class Avaloan implements Serializable {
    /**
     * 可贷额度id
     */
    @TableId
    @ApiModelProperty("可贷额度id")
    private String aid;

    /**
     * 房屋总价
     */
    @ApiModelProperty("房屋总价")
    private BigDecimal total;

    /**
     * 可贷额度
     */
    @ApiModelProperty("可贷额度")
    private BigDecimal money;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}